#include<iostream>
#include<map>
using namespace std;
int t,n;
long long a[2234567];
int main()
{
    cin>>t;
    while(t--){
            map<long long,int> ma;
            int flag=0;
        cin>>n;
        //cout<<-4%3<<endl;
        for(int i=0;i<n;i++){
            cin>>a[i];
            long long x;
            x=(((i+a[i])%n+n)%n);

    if(ma[x]==0) ma[x]=1;
    else flag=1;
        }
        if(flag==0) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
    }
    return 0;
}
